package apiday01;

import java.util.Locale;

/**
 * 将当前的字符串中的英文部分转为全大写
 */
public class ToUpperCaseDemo {
    public static void main(String[] args) {
       String str = "I Love You";
       String upper = str.toUpperCase();
       System.out.println(upper);
       String lower = str.toLowerCase(Locale.ROOT);
       System.out.println(lower);

        /*String str = "我 喜欢 java 个毛啊！";
       String upper = str.toUpperCase();
       System.out.println(upper);
       String lower = str.toLowerCase();
       System.out.println(lower);
        */


        /* String str = "我 live java";
        String upper = str.toUpperCase();
        System.out.println(upper);
        String lower = str.toLowerCase(Locale.ROOT);
        System.out.println(lower);
        */
    }
}
